package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.AssessmentRisk;
import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

/**
 * 会员服务接口
 */
public interface MemberService {

   Member findByTelephone(String telephone);

   void add(Member member);

   List<Integer> findCountByMonth(List<String> months);

   Integer findCountByDate(String dateString);

   Integer findCountAll();

   Integer findCountByThisWeek(String mondayString, String currentDateString);

   Integer findCountByThisMonth(String firstDayOfThisMonthStr, String currentDateString);
    List<Map<String, Object>> findAccessDataById(Integer id) throws Exception;

    String findMedicalReport(String fileNumber);

    AssessmentRisk findAccessReport(String fileNumber);

    PageResult findPageBySC(QueryPageBean queryPageBean);

    Map deleteByPhoeNumber(String phoneNumber);

    void setFileName(String phoneNumber,String fileName);

    Map<String,Object> getMemberStatistics(Map<String,String> map) throws Exception;

    //分页查询
    PageResult findPage(QueryPageBean pageBean);

    void update(Member member);
}
